package epam.com.classes;

public class Word {
	
	private String word;
	
	public Word(String word){
		this.word=word;
	}
	
	public String getWord() {
		return word;
	}

	public String setUpperFirstChar() {
		word = word.substring(0, 1).toUpperCase() + word.substring(1);
		return word;
	}

	public String setLowerFirstChar() {
		word = word.substring(0, 1).toLowerCase() + word.substring(1);
		return word;
	}

	public int length() {
		return word.length();
	}
}
